using System;
using System.Collections.Generic;
using System.Text;

namespace CUtil
{
    public class RandomGenerator
    {
        private static Random randomClass;

        public static double Random(int low, int high)
        {

            double dNumber = RandomClass.Next(low, high);
            return dNumber;
        }
        private static Random RandomClass
        {
            get
            {
                if (randomClass == null)
                {
                    randomClass = new Random(unchecked((int)DateTime.Now.Ticks));
                   

                }
                return randomClass;
            }
        }
    }
}
